package com.hns.dev.linys.guava.string;

import com.google.common.base.Splitter;

/**
 * Created by admin on 2019/2/16.
 * Splitter 提供了各种方法来处理分割操作字符串，对象等。
 */
public class GuavaSpiltter {

    public static void main(String args[]){
        GuavaSpiltter tester = new GuavaSpiltter();
        tester.testSplitter();
    }

    private void testSplitter(){
        System.out.println(Splitter.on(',')
            .trimResults()
            .omitEmptyStrings()
            .split("the ,quick, , brown         , fox,              jumps, over, the, lazy, little dog."));
    }


}
